import request from '@/utils/request'

// 查询业务对象配置列表
export function listBusinessObject(query) {
  return request({
    url: '/interfaceConfig/businessObject/list',
    method: 'get',
    params: query
  })
}

// 查询业务对象配置详细
export function getBusinessObject(id) {
  return request({
    url: '/interfaceConfig/businessObject/' + id,
    method: 'get'
  })
}

// 新增业务对象配置
export function addBusinessObject(data) {
  return request({
    url: '/interfaceConfig/businessObject',
    method: 'post',
    data: data
  })
}

// 修改业务对象配置
export function updateBusinessObject(data) {
  return request({
    url: '/interfaceConfig/businessObject',
    method: 'put',
    data: data
  })
}

// 删除业务对象配置
export function delBusinessObject(id) {
  return request({
    url: '/interfaceConfig/businessObject/' + id,
    method: 'delete'
  })
}

export function getSourceAndTargetSysObject(id) {
  return request({
    url: '/interfaceConfig/businessObject/getSourceAndTargetSysObject',
    method: 'get'
  })
}